export function successRes(result: any, message?: String) {
  return {
    code: 200,
    message: message ? message : '操作成功',
    result: result,
    success: true,
  };
}

export function failRes(result: any, code?: Number, message?: String) {
  return {
    code: code ? code : 500,
    message: message ? message : '操作失败',
    result: result ? result : {},
    success: false,
  };
}
